package com.blandware.atleap.webapp.form.core;

import javax.servlet.http.HttpServletRequest;
import com.blandware.atleap.webapp.form.BaseForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.upload.FormFile;
import org.apache.struts.upload.MultipartRequestHandler;
import java.util.Map;
import java.util.HashMap;

/**
 * @struts.form name="userForm" 
 */
public  class UserForm
    extends    BaseForm
    implements java.io.Serializable
{

    protected String name;

    protected String password;

    protected String updatePassword;

    protected String confirmPassword;

    protected String updateConfirmPassword;

    protected String firstName;

    protected String lastName;

    protected String address;

    protected String city;

    protected String province;

    protected String country;

    protected String postalCode;

    protected String email;

    protected String phoneNumber;

    protected String website;

    protected String version;

    /** Default empty constructor. */
    public UserForm() {}

    public String getName()
    {
        return this.name;
    }

   /**
    * @struts.validator type="required"
    * @struts.validator type="mask" msgkey="core.commons.errors.identifier"
    * @struts.validator-args arg0resource="core.user.form.name"
    * @struts.validator-var name="mask" value="${identifier}"
    */
    public void setName(String name)
    {
        this.name = name;
    }

    public String getPassword()
    {
        return this.password;
    }

   /**
    * @struts.validator type="required"
    * @struts.validator type="twofields" msgkey="core.commons.errors.twofields"
    * @struts.validator type="minlength" msgkey="core.commons.errors.minlength" arg0resource="core.user.form.password" arg1value="${var:minlength}"
    * @struts.validator type="maxlength" msgkey="core.commons.errors.maxlength" arg0resource="core.user.form.password" arg1value="${var:maxlength}"
    * @struts.validator-args arg0resource="core.user.form.password"
    * @struts.validator-args arg1resource="core.user.form.confirmPassword"
    * @struts.validator-var name="secondProperty" value="confirmPassword"
    * @struts.validator-var name="minlength" value="${passwordMinLength}"
    * @struts.validator-var name="maxlength" value="${passwordMaxLength}"
    */
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getUpdatePassword()
    {
        return this.updatePassword;
    }

   /**
    * @struts.validator type="twofields" msgkey="core.commons.errors.twofields"
    * @struts.validator type="minlength" msgkey="core.commons.errors.minlength" arg0resource="core.user.form.password" arg1value="${var:minlength}"
    * @struts.validator type="maxlength" msgkey="core.commons.errors.maxlength" arg0resource="core.user.form.password" arg1value="${var:maxlength}"
    * @struts.validator-args arg0resource="core.user.form.updatePassword"
    * @struts.validator-args arg1resource="core.user.form.confirmPassword"
    * @struts.validator-var name="secondProperty" value="updateConfirmPassword"
    * @struts.validator-var name="minlength" value="${passwordMinLength}"
    * @struts.validator-var name="maxlength" value="${passwordMaxLength}"
    */
    public void setUpdatePassword(String updatePassword)
    {
        this.updatePassword = updatePassword;
    }

    public String getConfirmPassword()
    {
        return this.confirmPassword;
    }

   /**
    * @struts.validator type="required"
    * @struts.validator-args arg0resource="core.user.form.confirmPassword"
    */
    public void setConfirmPassword(String confirmPassword)
    {
        this.confirmPassword = confirmPassword;
    }

    public String getUpdateConfirmPassword()
    {
        return this.updateConfirmPassword;
    }

   /**
    */
    public void setUpdateConfirmPassword(String updateConfirmPassword)
    {
        this.updateConfirmPassword = updateConfirmPassword;
    }

    public String getFirstName()
    {
        return this.firstName;
    }

   /**
    * @struts.validator type="required"
    * @struts.validator-args arg0resource="core.user.form.firstName"
    */
    public void setFirstName(String firstName)
    {
        this.firstName = firstName;
    }

    public String getLastName()
    {
        return this.lastName;
    }

   /**
    */
    public void setLastName(String lastName)
    {
        this.lastName = lastName;
    }

    public String getAddress()
    {
        return this.address;
    }

   /**
    */
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getCity()
    {
        return this.city;
    }

   /**
    */
    public void setCity(String city)
    {
        this.city = city;
    }

    public String getProvince()
    {
        return this.province;
    }

   /**
    */
    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getCountry()
    {
        return this.country;
    }

   /**
    */
    public void setCountry(String country)
    {
        this.country = country;
    }

    public String getPostalCode()
    {
        return this.postalCode;
    }

   /**
    * @struts.validator type="mask" msgkey="core.commons.errors.zip"
    * @struts.validator-args arg0resource="core.user.form.postalCode"
    * @struts.validator-var name="mask" value="${zip}"
    */
    public void setPostalCode(String postalCode)
    {
        this.postalCode = postalCode;
    }

    public String getEmail()
    {
        return this.email;
    }

   /**
    * @struts.validator type="required"
    * @struts.validator type="email"
    * @struts.validator-args arg0resource="core.user.form.email"
    */
    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getPhoneNumber()
    {
        return this.phoneNumber;
    }

   /**
    * @struts.validator type="mask" msgkey="core.commons.errors.phone"
    * @struts.validator-args arg0resource="core.user.form.phoneNumber"
    * @struts.validator-var name="mask" value="${phone}"
    */
    public void setPhoneNumber(String phoneNumber)
    {
        this.phoneNumber = phoneNumber;
    }

    public String getWebsite()
    {
        return this.website;
    }

   /**
    */
    public void setWebsite(String website)
    {
        this.website = website;
    }

    public String getVersion()
    {
        return this.version;
    }

   /**
    */
    public void setVersion(String version)
    {
        this.version = version;
    }

    /**
     * @see org.apache.struts.action.ActionForm#reset(org.apache.struts.action.ActionMapping,
     *                                                javax.servlet.http.HttpServletRequest)
     */
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        // reset any boolean data types to false

        // reset all linking properties to null

// reset all mapped properties to default values

    }

}
